package com.petalsgroup.petals.dao.admin;

import com.petalsgroup.petals.pojo.AdministratorDO;
import com.petalsgroup.petals.pojo.CommentsDO;
import com.petalsgroup.petals.pojo.UserDO;

import java.util.List;

public interface AdminDao {

    AdministratorDO findAdminByUsernameAndPassword(String username, String password);

    List<UserDO> selectAllUser();

    void bannedUser(String uid);

    void resolveUser(String uid);

    void deleteUser(String uid);

    List<UserDO> findUserByUsernameNameEmail(String userInfo);

    List<CommentsDO> selectAllComment();


    void deleteCommentById(String com_id);

    List<CommentsDO> findCommentByUserId(String userId);

    String findUserEmailByUid(String uid);

    List<CommentsDO> findCommentByAdminId(String adminId);

    List<UserDO> findBannedUser();

    List<UserDO> findUserById(String userInfo);

    List<UserDO> findUserByUsername(String userInfo);

    List<UserDO> findUserByEmail(String userInfo);

    List<CommentsDO> findCommentByTimeQuantum(String timeQuantum);

    long countUser();
    public List<UserDO> listUser(int star, int end);

    List<CommentsDO> listComment(int star, int end);

    long countComment();

    List<CommentsDO> findTopCommentByLikeNum(String number);
}
